'use strict';

const Controller = require('egg').Controller;

class ArticleController extends Controller {
    async index() {
        const { ctx } = this;
        var result = await ctx.model.Articles.find()
        
        ctx.body = result;
    }
}
module.exports = ArticleController;